<?php
	include './header.php';
?>

<div class="reg_main">
	<h1>用户注册</h1>
	<span class="span1">已有账号<a href="<?php echo URL;?>/login.php" style="color:#E31256;">在此登录</a></span>
	<br/>
	<form action="<?php echo URL;?>/action.php?a=reg" method="post">
		<label>
			<input type="text" name="username" placeholder="用户名"/>
			<span>请输入6-12位以字母开头,数字结尾的用户名</span>
		</label>
		<label>
			<input type="password" name="pwd" placeholder="密码"/>
			<span>请输入6-12位以数字开头,字母结尾的密码</span>
		</label>
		<label>
			<input type="password" name="repwd" placeholder="确认密码"/>
			<span>请再一次输入重复密码</span>
		</label>
		<label>
			<input type="text" name="yzm" placeholder="请输入验证码"/> &nbsp;
			<img src="<?php echo URL;?>/yzm/func.php" onclick="change(this)" alt="加载验证码失败"/>
			<script type="text/javascript">
			function change(obj)
			{
				obj.src=obj.src+'?id='+Math.random();
			}
			</script>
		</label>
		<input type="submit" value="注册" class="button" />
	</form>
</div>

<?php 
	include './footer.php';
?>